package com.carkeeper.system.service;

import com.carkeeper.common.utils.Result;
import com.carkeeper.system.pojo.Employee;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface EmployeeService {

    /**
     * 新增
     *
     * @param employee
     */
    void add(Employee employee);


    /**
     * id查询
     * (用于修改数据回显)
     *
     * @param id
     * @return
     */
    Map<String, Object> findById(Integer id);

    /**
     * 修改
     *
     * @param employee
     */
    void update(Employee employee);


    /**
     * 锁定/解锁
     *
     * @param employee
     */
    Result lock(Employee employee);


    /***
     * 多条件分页查询
     * @param searchMap
     * @param page
     * @param size
     * @return
     */
    Map<String, Object> findPage(Map<String, Object> searchMap, int page, int size);
}
